package com.blb.ssh.dao;

import java.util.List;

import com.blb.ssh.entity.Menu;
import com.blb.ssh.entity.Role;

public interface RoleDao {

	//获取数据总条数
	Long getRoleCount();
	//分页查询
	List<Role> getRoleListByMap(int page, int rows);
	//批量删除
	boolean batchDeleteRole(String[] idstr);
	//用戶新增
	boolean addRole(Role role);
	//用戶修改
	boolean editRole(Role role);
	//条件查询
	List<Role> getRoleListByMap(String rolename, int page, int rows);
	Role getUserByUserName(String roleName);
	List<Menu> getmenuId(int roleId);
	List<Menu> getAllTree();
	boolean deleteRoleMenu(int roleId);
	boolean addRoleMenu(String[] idstr, int roleId);
	boolean deleteRoleMenu(String[] idstr);
	
}
